<?php



namespace app\api\validate;

use think\Validate;

class Payment extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'worker_id' => 'require',
        'coupon_id' => 'number',
        'village_id' => 'require|number',
        'address_phone' => 'require|max:11|/^1[3-9]{1}[0-9]{9}$/',
        'address_detail' => 'require',
        'service_name' => 'require',
        'area' => 'require|float',
        'address_name' =>'require',
       //'remark'=>'',
        'appointmenttime'=>'require|length:10|number',
    ];

    protected $message = [

    ];
}